package org.yuanqiframework.yuanqi.boot.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.yuanqiframework.yuanqi.boot.sys.entity.SysConfig;
import org.yuanqiframework.yuanqi.boot.sys.mapper.SysConfigMapper;
import org.yuanqiframework.yuanqi.boot.sys.service.SysConfigService;
import org.yuanqiframework.yuanqi.boot.sys.vo.ConfigParams;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author cbt28
 * @description 针对表【sys_config】的数据库操作Service实现
 * @createDate 2025-07-19 16:59:34
 */
@Service
public class SysConfigServiceImpl extends ServiceImpl<SysConfigMapper, SysConfig>
        implements SysConfigService {
    @Resource
    private SysConfigMapper sysConfigMapper;

    @Override
    public List<ConfigParams> queryConfigParams() {
        return sysConfigMapper.queryConfigParams();
    }

    @Override
    public String get(String key) {
        return sysConfigMapper.get(key);
    }

}




